-
Notifications
You must be signed in to change notification settings - Fork 1.6k
ada4355: Add idelay calibration functionality #1690
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Detect when it is encounter a frame or data error. Signed-off-by: Pop Ioan Daniel <pop.ioan-daniel@analog.com>
3c82949
to
8a42858
Compare
Register map updates should come with documentation updates |
Done. |
Signed-off-by: Pop Ioan Daniel <pop.ioan-daniel@analog.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Checked the doc and regmap and they look ok
if (up_rstn == 0) begin | ||
up_rack <= 'd0; | ||
up_rdata <= 'd0; | ||
end else begin | ||
up_rack <= up_rreq; | ||
if (up_rreq == 1'b1) begin | ||
case (up_raddr) | ||
7'h32: up_rdata <= {29'd0, up_enable_error}; | ||
default: up_rdata <= 0; | ||
endcase | ||
end else begin | ||
up_rdata <= 32'd0; | ||
end | ||
end |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fix indentation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
// processor write interface | ||
|
||
always @(posedge up_clk) begin | ||
if (up_rstn == 0) begin |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
indentation (hopefully it's not a TAB)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix it.
@@ -351,6 +385,9 @@ module axi_ada4355_if #( | |||
RESET : begin | |||
shift_cnt <= 0; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
indentation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
library/axi_ada4355/axi_ada4355_if.v
Outdated
reg frame_err_r; | ||
reg data_err_lane_0_r; | ||
reg data_err_lane_1_r; | ||
reg [15:0] lane_0_mask = 16'h5555; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
these should be localparam, not reg
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
library/axi_ada4355/axi_ada4355_if.v
Outdated
@@ -120,6 +124,7 @@ module axi_ada4355_if #( | |||
reg [ 1:0] serdes_valid = 2'b00; | |||
reg [ 1:0] serdes_valid_d = 2'b00; | |||
reg [ 2:0] shift_cnt = 3'd0; | |||
reg [ 4:0] delay = 5'd0; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you have a mix of "d", 'h" and "b" types. please use only one (preferably "h")
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
@@ -275,38 +286,40 @@ module axi_ada4355_if #( | |||
end |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fix indentation (284)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
Signed-off-by: Pop Ioan Daniel <pop.ioan-daniel@analog.com>
PR Description
Detect when it is encountering a frame or data error.
PR Type
PR Checklist